<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container{
            width: 500px;
            height: 500px;
            margin: 300px auto;
            border: 1px solid;
        }
        .box1{
            width: 100px;
            height: 100px;
            background-color: #bfc;
            /* position: relative;
            top: 50%;
            left: 50%; */
            /* margin-left: -50px;
            margin-top: -50px; */
            transform: translate(200px,200px);
            /* transform: translateX(50px) translateX(50px); */
        }
        /* .box2{
            width: 100px;
            height: 100px;
            background-color: #fbc;
        } */
    </style>
</head>
<body>
    <div class="container">
        <div class="box1"></div>
        <div class="box2"></div>
    </div>
</body>
</html>